﻿using System;
using System.Linq.Expressions;
using System.Reflection;

namespace Dapper.Library
{
    public interface IOrder<T>
    {
        /// <summary>
        /// 顺序
        /// </summary>
        /// <typeparam name="TProperty"></typeparam>
        /// <param name="field"></param>
        /// <returns></returns>
        Order<T> OrderBy(OrderByType orderBy, string field);


        /// <summary>
        /// Asc排序
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        Order<T> OrderByAsc(string field);


        /// <summary>
        /// Desc排序
        /// </summary>
        /// <param name="field"></param>
        /// <returns></returns>
        Order<T> OrderByDesc(string field);
        
    }
}
